<?php
require_once "aip-php-sdk/AipImageClassify.php";

// 你的 APPID AK SK
const APP_ID = '25625099';
const API_KEY = 'tZyySKinQpPYOmATLRugjgaA';
const SECRET_KEY = 'zcGwyf1omlvxK6vD6kGGuGFTtyPtGp8v';

$client = new AipImageClassify(APP_ID, API_KEY, SECRET_KEY);

$image = file_get_contents('image.png');

// 调用通用物体和场景识别
$client->advancedGeneral($image);

// 如果有可选参数
$options = array();
$options["baike_num"] = 5;

// 带参数调用通用物体和场景识别
$result = $client->advancedGeneral($image, $options);

print_r($result);